package com.codeshellme.bookmanager.dao;


import com.codeshellme.bookmanager.dto.BookBorrow;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface BookBorrowDao {

    List<Map<String, Object>> queryAllBookBorrows(String book_name, Integer type_id, Integer author_id, String status,
                                                  Integer student_id, String student_name,
                                                  String bdate_start, String bdate_end,
                                                  String rdate_start, String rdate_end);

    int bookReturn(Integer borrowId);

    int insertBorrows(List<BookBorrow> borrows);
}
